package com.cmrx.model.service;

import com.cmrx.model.entity.CommonPicture;
import com.cmrx.model.entity.User;

public interface CommonPictureServer {
    /**
     * 添加图片，同时添加缩略图
     * @param user
     * @param commonPicture
     * @return
     */
    String AddPicture(User user, CommonPicture commonPicture);

    /**
     * 修改图片，同时修改缩略图
     * @param user
     * @param content
     * @return
     */
    boolean updatePicture(User user,String pictureId,byte[] content);
}
